﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace PRET.ReportSystem.Forms
{
    public partial class WaitForm : Form
    {
        public bool CanClose = false;
        public WaitForm()
        {
            InitializeComponent();
        }

        private void WaitForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            // 禁止用户按Alt+F4关闭等待窗口，只能由程序自己关闭
            if (CanClose == false)
                e.Cancel = true;
        }
    }
}
